package com.example.javatwo.mapper.cg.wmj;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.javatwo.pojo.cg.lmx.CaiGouRuKuX;
import com.example.javatwo.pojo.cg.wmj.PurchaseReturn;
import com.example.javatwo.pojo.cg.wmj.PurchaseReturnInfo;

@Mapper
public interface buyReturnMapping {
	
	//查询主祥信息  by billNo
	public List<PurchaseReturn> QueryBuy(@Param("currentPage")int currentPage);
	public List<PurchaseReturnInfo> QueryBuyInfo(String billNo);
	
	//新增主祥
	public void InsertPurchaseReturn(PurchaseReturn purchase);
	
	//根据日期 查询编号
	public String QueryBillNo(String date);
	
	//删除主祥
	public void DeletePurchaseReturn(String billNo);
	
	//查询条数
	public int QueryCount(String billNo);
	
	//查询 审核状态
	public String QueryStatus(String billNo);
	
	//查询总条数
	public int QuerySumCount();
	
	//修改供应商   剩余额度，期末应付款，
	public void UpdateSupplier(@Param("money")Double money,@Param("id")String id);
	//修改物料  现有数量，现行总成本,现行平均成本
	public void UpdateProduct(@Param("num")int num,@Param("money")Double money,@Param("id")String id);
	
	
}
